import request from '@/utils/request'

// 查询随堂测试记录详细列表
export function listTestRecordDetails(query) {
  return request({
    url: '/testRecordDetails/testRecordDetails/list',
    method: 'get',
    params: query
  })
}

// 查询随堂测试记录详细详细
export function getTestRecordDetails(recordDetailsId) {
  return request({
    url: '/testRecordDetails/testRecordDetails/' + recordDetailsId,
    method: 'get'
  })
}

// 新增随堂测试记录详细
export function addTestRecordDetails(data) {
  return request({
    url: '/testRecordDetails/testRecordDetails',
    method: 'post',
    data: data
  })
}

// 修改随堂测试记录详细
export function updateTestRecordDetails(data) {
  return request({
    url: '/testRecordDetails/testRecordDetails',
    method: 'put',
    data: data
  })
}

// 删除随堂测试记录详细
export function delTestRecordDetails(recordDetailsId) {
  return request({
    url: '/testRecordDetails/testRecordDetails/' + recordDetailsId,
    method: 'delete'
  })
}
